package com.googlecode.garbagecan.dbtest.benchmark;

import java.sql.Connection;
import java.sql.DriverManager;

public class DBUtil {
	public static Connection getConnection() throws Exception {
//		Class.forName("org.postgresql.Driver");
//		String url = "jdbc:postgresql://172.17.18.211/fkong";
//		Connection conn = DriverManager.getConnection(url, "fkong", "fkong");
		
		Class.forName("org.gjt.mm.mysql.Driver");
		String url = "jdbc:mysql://172.17.18.211:3306/fkong";
		Connection conn = DriverManager.getConnection(url, "fkong", "fkong");
		
		conn.setAutoCommit(false);
		return conn;
	}
}
